'''
Created on 16/09/2010

@author: lctr30
'''

import pygtk
pygtk.require('2.0')
import gtk

from label import Label 

class Frame(gtk.Frame):
    SHADOW_NONE = gtk.SHADOW_NONE
    SHADOW_IN = gtk.SHADOW_IN
    SHADOW_OUT = gtk.SHADOW_OUT
    SHADOW_ETCHED_IN = gtk.SHADOW_ETCHED_IN
    SHADOW_ETCHED_OUT = gtk.SHADOW_ETCHED_OUT
    
    DEFAULT_PADDING = 5
    
    def __init__(self,text=None,bold=None, xalign=None, yalign=None, shadow=None):
        gtk.Frame.__init__(self,'')
        if text != None:
            label = gtk.Label('')
            label.set_text(text)
            if bold != None:
                label = Label.get_bold_label(label=label)
            label.set_padding(Label.DEFAULT_PADDING,0)
            self.set_label_widget(label)
        
        if xalign != None and yalign != None :
            self.set_label_align(xalign, yalign)
            
        if shadow != None:
            self.set_shadow_type(shadow)
            
            
            
